// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import uView from '@/uni_modules/uview-ui'
// import Tabbar from 'components/Tabbar/index.vue'
import publicJs from '@/utils/public.js'


Vue.use(uView)

Vue.config.productionTip = false

// Vue.component('Tabbar', Tabbar)

Vue.prototype.$publicJs = publicJs

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// 封装的展示消息提示的方法
uni.$showMsg = function(title = '数据加载失败！', duration = 1500) {
	uni.showToast({
		title,
		duration,
		icon: 'none',
	})
}



// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif